import concreteCommand.OrderCommand;
import invoker.Waiter;
import model.Order;
import receiver.SeniorChef;

public class Client {

    public static void main(String[] args) {
        //创建订单对象
        Order order1 = new Order();
        order1.setDiningTable(1);
        order1.setFoodDir("西红柿鸡蛋面",1);
        order1.setFoodDir("小杯可乐",2);

        Order order2 = new Order();
        order2.setDiningTable(2);
        order2.setFoodDir("青椒肉丝盖饭",1);
        order2.setFoodDir("小杯雪碧",2);

        SeniorChef receiver = new SeniorChef();

        OrderCommand cmd1 = new OrderCommand(receiver, order1);
        OrderCommand cmd2 = new OrderCommand(receiver, order2);

        Waiter waiter = new Waiter();
        waiter.setCommand(cmd1);
        waiter.setCommand(cmd2);

        waiter.orderUp();
    }
}
